//
//  BusinessCardVC.m
//  jinwang
//
//  Created by jzb on 2018/3/26.
//  Copyright © 2018年 jzb. All rights reserved.
//

#import "BusinessCardVC.h"

@interface BusinessCardVC ()

@property (weak, nonatomic) IBOutlet UIImageView *HeaderImg;
@property (weak, nonatomic) IBOutlet UILabel *user_nickname;
@property (weak, nonatomic) IBOutlet UILabel *user_truename;
@property (weak, nonatomic) IBOutlet UILabel *user_phone;
@property (weak, nonatomic) IBOutlet UILabel *user_address;

@property (weak, nonatomic) IBOutlet UIImageView *user_sexImg;
@property (weak, nonatomic) IBOutlet UIImageView *user_isVIPImg;

@end

@implementation BusinessCardVC

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"名片";
    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.f) {
        self.edgesForExtendedLayout = UIRectEdgeNone;
    }
    self.user_nickname.text = [NSString stringWithFormat:@"昵称:%@",_model.user_nickname];
    self.user_truename.text = [NSString stringWithFormat:@"姓名:%@",_model.user_truename];
    [self.HeaderImg sd_setImageWithURL:[NSURL URLWithString:_model.user_portrait] placeholderImage:[UIImage imageNamed:@"headerImage"]];
    self.user_phone.text = [NSString stringWithFormat:@"联系方式:%@",_model.user_phone];
//    self.user_address.text = [NSString stringWithFormat:@"地址:%@",_model.user_address];
    
    if ([_model.user_sex integerValue] == 0) {
        self.user_sexImg.image = [UIImage imageNamed:@"jw_men_Icon"];
    }else{
        self.user_sexImg.image = [UIImage imageNamed:@"jw_Women_Icon"];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
